/*
 * Niiuzu
 * Copyright (C) 2011  Thierry Nowak
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.niiuzu.server.dao.model;

/**
 * Objet représentant une requête pour envoyer un email.
 */
public class MailRequest {

	private String senderAddress;
	private String receiverAddress;
	private String title;
	private String content;

	/**
	 * Construit une nouvelle instance de {@link MailRequest}.
	 */
	public MailRequest() {

	}

	@Override
	public String toString() {
		return "MailRequest[to:" + receiverAddress + "]";
	}

	/**
	 * Adresse mail de l'expéditeur.
	 */
	public String getSenderAddress() {
		return senderAddress;
	}

	/**
	 * Définit l'adresse mail de l'expéditeur.
	 */
	public void setSenderAddress(String senderAddress) {
		this.senderAddress = senderAddress;
	}

	/**
	 * Adresse mail du destinataire.
	 */
	public String getReceiverAddress() {
		return receiverAddress;
	}

	/**
	 * Définit l'adresse mail du destinataire.
	 */
	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}

	/**
	 * Titre du mail.
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Définit le titre du mail.
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * Contenu du mail.
	 */
	public String getContent() {
		return content;
	}

	/**
	 * Définit le contenu du mail.
	 */
	public void setContent(String content) {
		this.content = content;
	}
}
